{# src/Inter/ArticleBundle/Resouces/views/Default/show.html.twig #}
{% extends 'InterArticleBundle::layout.html.twig' %}

{% block title %}{{ article.title }}{% endblock %}

{% block body %}
    <article class="article">
        <header>
            <div class="date"><time datetime="{{ article.createdat|date('c') }}">{{ article.createdat|date('l, F j, Y') }}</time></div>
            <h2>{{ article.title }}</h2>
        </header>        
        <div>
            <p>{{ article.content }}</p>
        </div>
    </article>
    <a href="{{ path('inter_article') }}">Articles list</a>
{% endblock %}